namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PUB_DEV_MEDIASERVER")]
    public partial class PUB_DEV_MEDIASERVER
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PUB_DEV_MEDIASERVER()
        {
            PUB_DEV_CAMERA = new HashSet<PUB_DEV_CAMERA>();
        }

        [Key]
        [StringLength(40)]
        public string MEDIASERVER_ID { get; set; }

        [Required]
        [StringLength(40)]
        public string MEDIASERVER_NAME { get; set; }

        public int MEDIASERVER_TYPE { get; set; }

        [Required]
        [StringLength(50)]
        public string USERNAME { get; set; }

        [Required]
        [StringLength(50)]
        public string PASSWORD { get; set; }

        [Required]
        [StringLength(50)]
        public string IP { get; set; }

        public short HTTP_PORT { get; set; }

        public short RTSP_PORT { get; set; }

        public short SERVER_PORT { get; set; }

        [StringLength(50)]
        public string WAN_IP { get; set; }

        public short? WAN_HTTP_PORT { get; set; }

        public short? WAN_RTSP_PORT { get; set; }

        public short? WAN_SERVER_PORT { get; set; }

        [StringLength(200)]
        public string HOME_DIR { get; set; }

        public bool? NET_STATUS { get; set; }

        public DateTime? NET_STATUS_TIMS { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PUB_DEV_CAMERA> PUB_DEV_CAMERA { get; set; }
    }
}
